package com.varian.system.dto;

import cn.hutool.core.date.DatePattern;
import com.varian.mybatis.base.BasePage;
import com.varian.system.enums.NoticeReceiveTypeEnum;
import com.varian.system.enums.NoticeStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author ben
 * @since 2024/8/27
 */
@Data
@Schema(title = "通知数据对象")
public class SysNoticePageDTO extends BasePage {
    @Schema(title = "通知接收者类型")
    private NoticeReceiveTypeEnum noticeReceiveType;
    @Schema(title = "通知标题")
    private String noticeTitle;
    @Schema(title = "通知类型")
    private String noticeType;
    @Schema(title = "通知发布开始时间")
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime noticePublishTimeStart;
    @Schema(title = "通知发布结束时间")
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime noticePublishTimeEnd;
    @Schema(title = "通知状态")
    private NoticeStatusEnum noticeStatus;

}
